-- GENERATED SPELL FOR [Alliance Berserker] --


function spell0_26800(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(21049,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26800', 30309, 1)
end

function spell1_26800(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(47774,pUnit)
pUnit:RegisterEvent('Sorts_26800', 564, 1)
end

function spell2_26800(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(38682,pUnit)
pUnit:RegisterEvent('Sorts_26800', 598, 1)
end

function Sorts_26800(pUnit, Event)
local choix_sorts_26800 = math.random(0, 2)
if choix_sorts_26800 == 0 then
pUnit:RegisterEvent('spell0_26800', 1, 1)
end
if choix_sorts_26800 == 1 then
pUnit:RegisterEvent('spell1_26800', 1, 1)
end
if choix_sorts_26800 == 2 then
pUnit:RegisterEvent('spell2_26800', 1, 1)
end
end

function mob26800_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26800', math.random(1500, 3000), 1)
end

function mob26800_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26800_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26800_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26800, 1, 'mob26800_Action')
RegisterUnitEvent(26800, 2, 'mob26800_Leave')
RegisterUnitEvent(26800, 3, 'mob26800_Kill')
RegisterUnitEvent(26800, 4, 'mob26800_Die')
